package com.cocotingo.snail.examples;

import java.io.IOException;

import com.cocotingo.snail.template.TemplateParserException;
import com.cocotingo.snail.template.models.TemplateDefinitionsNode;
import com.cocotingo.snail.template.parser.XMLTemplateParser;
import com.cocotingo.snail.template.parser.XMLTemplateWritter;

public class SampleMain6 {

	public static void main(String[] args) {
		XMLTemplateParser parser = new XMLTemplateParser();
		XMLTemplateWritter writter = new XMLTemplateWritter();
		try {
			TemplateDefinitionsNode node = parser.parse(SampleMain6.class.getResourceAsStream("Example02.xml"));
			writter.write(node, System.out);
		} catch (TemplateParserException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
